home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-05 / conex61.zip / TECH.REF < prev    next >
Text File  |  1991-11-07  |  32KB  |  925 lines

  1.  
  2.  
  3.               Technical Reference
  4.  
  5.                    CONEX 6.1
  6.  
  7.  
  8.                ┌───────────────────────┐
  9.                │  ┌─────────────────┐  │
  10.                │  │    ports        │  │
  11.                │  └─────────────────┘  │
  12.                └───────────────────────┘
  13.  
  14. COM
  15. ────────────────────────────────────────────────────────────────────
  16.  
  17.  - by default COM 1/3 use interrupt 4, COM 2/4 use interrupt 3
  18.  - base port registers are read from BIOS communication area
  19.  
  20.  
  21. port *F8 - Transmit/Receive Buffer  (read/write)
  22.        Baud Rate Divisor LSB if bit 7 of LCR is set  (read/write)
  23.  
  24.  
  25. port *F9 - Interrupt Enable Register - IER  (read/write)
  26.        Baud Rate Divisor MSB if bit 7 of LCR is set  (read/write)
  27.  
  28.     │7│6│5│4│3│2│1│0│
  29.          │ │ │ └──── 1 = enable data available int
  30.          │ │ └───── 1 = enable THRE interrupt
  31.          │ └────── 1 = enable lines status interrupt
  32.          └─────── 1 = enable modem-status-change interrupt
  33.  
  34.  
  35.             Baud Rate Divisor Table
  36.  
  37.              Baud Rate                Baud Rate
  38.     Baud Rate          Divisor          Baud Rate      Divisor
  39.  
  40.        50           2304         2400        48
  41.        75           1536         3600        32
  42.       110           1047         4800        24
  43.       150        768         9600        12
  44.       200        576        19200         6
  45.       300        384        38400         3
  46.       600        192        57600         2
  47.      1200         96           115200         1
  48.      1800         64
  49.  
  50.  
  51.  
  52.  
  53. port *FA - Interrupt Identification Register - IIR  (read only)
  54.  
  55.     │7│6│5│4│3│2│1│0│
  56.            │ │ └──── 1 = no int. pending, 0=int. pending
  57.            └─┴───── Interrupt Id bits (see below)
  58.  
  59.        Bits
  60.     21     Meaning        Priority     To reset
  61.     00  modem-status-change      lowest     read MSR
  62.     01  transmit-register-empty  low     read IIR / write THR
  63.     10  data-available         high     read rec buffer reg
  64.     11  line-status          highest     read LSR
  65.  
  66.  
  67.  
  68. port *FB - Line Control Register - LCR    (read/write)
  69.  
  70.     │7│6│5│4│3│2│1│0│
  71.      │ │ │ │ │ │ └─┴──── word length select bits (see below)
  72.      │ │ │ │ │ └─────── 0 = 1 stop bit, 1 = 1.5 or 2  (see note)
  73.      │ │ │ │ └──────── 0 = no parity, 1 = parity (PEN)
  74.      │ │ │ └───────── 0 = odd parity, 1 = even (EPS)
  75.      │ │ └────────── 0 = parity disabled, 1 = enabled
  76.      │ └─────────── 0 = turn break off, 1 = force spacing break state
  77.      └──────────── 1 = baud rate divisor (DLAB)
  78.  
  79.        Bits
  80.     10     Word length bits
  81.     00 = 5 bits per character
  82.     01 = 6 bits per character
  83.     10 = 7 bits per character
  84.     11 = 8 bits per character
  85.  
  86.  
  87. port *FC - Modem Control Register - MCR  (read/write)
  88.  
  89.     │7│6│5│4│3│2│1│0│
  90.          │ │ │ └──── 1 = activate DTR
  91.          │ │ └───── 1 = activate RTS
  92.          │ └────── OUT1
  93.          └─────── OUT2
  94.  
  95.  
  96. port *FD - Line Status Register - LSR  (read only)
  97.  
  98.     │7│6│5│4│3│2│1│0│
  99.        │ │ │ │ │ │ └──── 1 = data ready
  100.        │ │ │ │ │ └───── 1 = overrun error (OE)
  101.        │ │ │ │ └────── 1 = parity error (PE)
  102.        │ │ │ └─────── 1 = framing error (FE)
  103.        │ │ └──────── 1 = break interrupt  (BI)
  104.        │ └───────── 1 = transmitter holding register empty (THRE)
  105.        └────────── 1 = transmitter shift register empty (TSRE)
  106.  
  107.  
  108. port *FE - Modem Status Register - MSR (read only)
  109.  
  110.     │7│6│5│4│3│2│1│0│
  111.      │ │ │ │ │ │ │ └──── 1 = DCTS  Delta CTS  (CTS changed) 
  112.      │ │ │ │ │ │ └───── 1 = DDSR  Delta DSR  (DSR changed)
  113.      │ │ │ │ │ └────── 1 = RI ring indicator changed
  114.      │ │ │ │ └─────── 1 = DDCD  Delta Data Carrier Detect (DCD changed)
  115.      │ │ │ └──────── 1 = CTS
  116.      │ │ └───────── 1 = DSR
  117.      │ └────────── 1 = ring indicator (RI)
  118.      └─────────── 1 = receive line signal detect
  119.  
  120.  
  121.  
  122.  
  123.  
  124. INT 14H
  125. ────────────────────────────────────────────────────────────────────
  126.  
  127. INT 14,0 - Initialize Communications Port Parameters
  128.  
  129.     AH = 00
  130.     AL = parms for initialization (see tables below)
  131.     DX = zero based serial port number (0-1) (0-3 for AT)
  132.  
  133.     │7│6│5│4│3│2│1│0│  AL               Parity (bits 4 & 3)
  134.      │ │ │ │ │ │ └─┴──── word length bits           00 = none
  135.      │ │ │ │ │ └─────── stop bits flag           01 = odd
  136.      │ │ │ └─┴──────── parity bits               10 = none
  137.      └─┴─┴─────────── baud rate bits           11 = even
  138.  
  139.        Word length (bits 1 & 0)        Stop bit count (bit 2)
  140.  
  141.        10 = 7 bits                  0 = 1 stop bit
  142.        11 = 8 bits                  1 = 2 stop bits
  143.  
  144.        Baud rate (bits 7, 6 & 5)
  145.  
  146.     000 = 110 baud        100 = 1200 baud
  147.     001 = 150 baud        101 = 2400 baud
  148.     010 = 300 baud        110 = 4800 baud
  149.     011 = 600 baud        111 = 9600 baud
  150.  
  151.  
  152.     on return:
  153.     AH = port status
  154.     AL = modem status
  155.  
  156.  
  157.  
  158. INT 14,1 - Send Character to Communications Port
  159.  
  160.     AH = 01
  161.     AL = character to send
  162.     DX = zero based serial port number (0-1) (0-3 for AT)
  163.  
  164.  
  165.     on return:
  166.     AH = port status
  167.          bit 7=0 indicates success
  168.          bit 7=1 indicates error, bits 0-6 indicate cause
  169.  
  170.  
  171. INT 14,2 - Receive Character from Communications Port
  172.  
  173.     AH = 02
  174.     DX = zero based serial port number (0-1) (0-3 for AT)
  175.  
  176.  
  177.     on return:
  178.     AH = port status
  179.          bit 7 = 0 if successful
  180.          bit 7 = 1 if call failed
  181.     AL = character received if call was success
  182.  
  183.  
  184. INT 14,3 - Get Serial Port Status
  185.  
  186.     AH = 03
  187.     DX = zero based serial port number (0-1) (0-3 for AT)
  188.  
  189.     on return:
  190.     AH = port status
  191.     AL = modem status
  192.  
  193.  
  194. INT 14,4 - Send Break (not part of BIOS)
  195.  
  196.     AH = 04
  197.  
  198.  
  199.  
  200.                ┌───────────────────────┐
  201.                │  ┌─────────────────┐  │
  202.                │  │  VT102 Commands │  │
  203.                │  └─────────────────┘  │
  204.                └───────────────────────┘
  205.  
  206.  
  207. Cursor movement
  208. ────────────────────────────────────────────────────────────────────
  209. ESC [ #n A        move cursor up #n lines
  210. ESC [ #n B        move cursor down #n lines
  211. ESC [ #n C        move cursor right #n columns
  212. ESC [ #n D        move cursor left #n columns
  213. ESC [ #l ; #c H  or
  214. ESC [ #l ; #c f     move cursor to line #r and column #c
  215. ESC D            move cursor down one line with scroll
  216. ESC E            move cursor to beginning of next line with scroll
  217. ESC M            move cursor up one line with scroll
  218. ESC 7            save cursor attributes
  219. ESC 8            restore cursor attributes
  220.  
  221.    - Normal screen size of an VT100 terminal is 24 lines X 80 columns.
  222.      The upper line in CONEX is used as status line, so that the cursor
  223.      position (line 1, column 1) gives (line 2, column 1) on screen.
  224.      The upper line cannot be referenced by any VT100 commands!
  225.  
  226.  
  227. character attributes
  228. ────────────────────────────────────────────────────────────────────
  229. ESC [ m
  230. ESC [ 0 m        all character attributes off
  231. ESC [ 1 m        make all following characters bold
  232. ESC [ 4 m        underline all following characters
  233. ESC [ 5 m        let all following characters blink
  234. ESC [ 7 m        inverse all following characters
  235. ESC [ a1 ; a2 ; ... m    set character attributes a1, a2 ...
  236.  
  237.    - since characters cannot be underlined on color screens
  238.      they are displayed in special colors
  239.  
  240.  
  241. erase and insert characters
  242. ────────────────────────────────────────────────────────────────────
  243. ESC [ K
  244. ESC [ 0 K        erase from cursor position to end of line
  245. ESC [ 1 K        erase from beginning of line to cursor position
  246. ESC [ 2 K        erase entire line
  247.  
  248. ESC [ J
  249. ESC [ 0 J        erase from cursor position to end of screen
  250. ESC [ 1 J        erase from beginning of screen to cursor position
  251. ESC [ 2 J        erase entire screen
  252.  
  253. ESC [ #n P        delete #n characters following cursor position
  254. ESC [ #n M        delete #n lines at cursor
  255. ESC [ #n L              insert #n lines at cursor position
  256.  
  257.  
  258. tabulators
  259. ────────────────────────────────────────────────────────────────────
  260. ESC H            set tabulator at cursor position
  261. ESC [ g
  262. ESC [ 0 g        delete tabulator at cursor position
  263. ESC [ 3 g        delete all tabulators
  264.  
  265.    - tabulators are preset to positions 9, 17, 24 ...
  266.  
  267.  
  268. modes
  269. ────────────────────────────────────────────────────────────────────
  270. ESC [ ? 1 h        set cursor keys application mode
  271. ESC [ ? 1 l        set cursor key mode (default)
  272.  
  273.    - The cursor keys UP, DOWN, LEFT, RIGHT send different code according
  274.      to cursor key mode set.
  275.      (see table 1)
  276.  
  277. ESC =            set application keypad mode
  278. ESC >            set numeric keypad mode (default)
  279.  
  280.    - If the numeric keypad is activated, i.e. NUM LOCK is pressed,
  281.      numbers or control functions are generated by the numeric keypad.
  282.      (see table 2)
  283.  
  284. ESC [ ? 6 h        relative origin mode
  285. ESC [ ? 6 l        absolute origin mode (default)
  286.  
  287.    - In absolute origin mode line numbers are counted relative to top
  288.      margin of screen, the cursor can be moved outside the scrolling
  289.      region. In relative mode line numbers are relative to top margin of
  290.      scrolling region and the cursor cannot be moved outside.
  291.  
  292. ESC [ ? 7 h        autowrap mode on (default)
  293. ESC [ ? 7 l        autowrap mode off
  294.  
  295.    - Characters at the end of line automatically wrap into the next line
  296.      if autowrap mode is on.
  297.  
  298. ESC [ 4 h        insert mode
  299. ESC [ 4 l        overwrite mode (default)
  300.  
  301.     - In Insert mode all characters from cursor position up to end of
  302.       line are move right by one place and the character is inserted.
  303.       The last character in line is always lost.
  304.  
  305.  
  306. scrolling region
  307. ────────────────────────────────────────────────────────────────────
  308. ESC [ #t ; #b r     set scrolling region top row = #t, bottom row = #b
  309.  
  310.  
  311. character sets
  312. ────────────────────────────────────────────────────────────────────
  313. ESC ( A         select UK character set as G0
  314. ESC ) A         select UK character set as G1
  315. ESC ( B         select ASCII character set as G0
  316. ESC ) B         select ASCII character set as G1
  317. ESC ( K         select german character set as G0
  318. ESC ) K         select german character set as G1
  319. ESC ( O         select graphic character set as G0
  320. ESC ) O         select graphic character set as G1
  321.  
  322. SI (0fh)        activate G0
  323. SO (10h)        activate G1
  324.  
  325.  
  326.         ASCII, UK, german, graphic character set
  327.          ┌────────────┬─────────────┬─────────────────┐
  328.          │ dec ASC UK │ dec ASC ger │ dec ASC ger gph │
  329.          ├────────────┼─────────────┼─────────────────┤
  330.          │ 32      │ 64    @    │ 96  `          │
  331.          │ 33  !      │ 65    A    │ 97  a       ▒   │
  332.          │ 34  "      │ 66  B       │ 98  b          │
  333.          │ 35  #   £  │ 67    C    │ 99  c          │
  334.          │ 36  $      │ 68    D    │ 100 d          │
  335.          │ 37  %      │ 69    E    │ 101 e          │
  336.          │ 38  &      │ 70    F    │ 102 f       °   │
  337.          │ 39  '      │ 71  G       │ 103 g       ±   │
  338.          │ 40  (      │ 72    H    │ 104 h          │
  339.          │ 41  )      │ 73    I    │ 105 i          │
  340.          │ 42  *      │ 74    J    │ 106 j       ┘   │
  341.          │ 43  +      │ 75    K    │ 107 k       ┐   │
  342.          │ 44  ,      │ 76    L    │ 108 l       ┌   │
  343.          │ 45  -      │ 77    M    │ 109 m       └   │
  344.          │ 46  .      │ 78    N    │ 110 n       ┼   │
  345.          │ 47  /      │ 79    O    │ 111 o       ─   │
  346.          │ 48  0      │ 80    P    │ 112 p       ─   │
  347.          │ 49  1      │ 81    Q    │ 113 q       ─   │
  348.          │ 50  2      │ 82    R    │ 114 r       ─   │
  349.          │ 51  3      │ 83    S    │ 115 s       ─   │
  350.          │ 52  4      │ 84    T    │ 116 t       ├   │
  351.          │ 53  5      │ 85    U    │ 117 u       ┤   │
  352.          │ 54  6      │ 86    V    │ 118 v       ┴   │
  353.          │ 55  7      │ 87    W    │ 119 w       ┬   │
  354.          │ 56  8      │ 88    X    │ 120 x       │   │
  355.          │ 57  9      │ 89    Y    │ 121 y       ≤   │
  356.          │ 58  :      │ 90    Z    │ 122 z       ≥   │
  357.          │ 59  ;      │ 91    [   Ä    │ 123 {  ä    π   │
  358.          │ 60  <      │ 92    \   Ö    │ 124 |  ö    ╪   │
  359.          │ 61  =      │ 93    ]   Ü    │ 125 }  ü    £   │
  360.          │ 62  >      │ 94    ^    │ 126 ~  ß    ∙   │
  361.          │ 63  ?      │ 95    _    │ 127        │
  362.          └────────────┴─────────────┴─────────────────┘
  363.  
  364.  
  365.               Multinational/ISO character set
  366.    ┌─────────────────────────┬────────────────────┬─────────────────┐
  367.    │ dec    meaning         │ dec    meaning      │ dec    meaning  │
  368.    ├─────────────────────────┼────────────────────┼─────────────────┤
  369.    │ 160 ▓  ///          │ 192 A  `A      │ 224 à  `a        │
  370.    │ 161 ¡  turned !         │ 193 A  'A          │ 225 á  'a       │
  371.    │ 162 ¢  cent         │ 194 A  ^A      │ 226 â  ^a        │
  372.    │ 163 £  pound         │ 195 A  ~A      │ 227 a  ~a        │
  373.    │ 164   sun (ISO)         │ 196 Ä  "A          │ 228 ä  "a       │
  374.    │ 165 ¥  Yen          │ 197 Å  °A      │ 229 å  °a        │
  375.    │ 166 |  vertical (ISO)   │ 198 Æ  AE      │ 230 æ  ae        │
  376.    │ 167   paragraph sign   │ 199 Ç  ,C      │ 231 ç  ,c        │
  377.    │ 168   sun          │ 200 E  `E      │ 232 è  `e        │
  378.    │ 169 C  Copyright         │ 201 É  'E          │ 233 é  'e       │
  379.    │ 170 ª  _a             │ 202 E  ^E      │ 234 ê  ^e        │
  380.    │ 171 «  <<             │ 203 E  "E          │ 235 ë  "e       │
  381.    │ 172 ¬  not (ISO)         │ 204 I  `I      │ 236 ì  `i        │
  382.    │ 173 ─  dash (ISO)         │ 205 I  'I          │ 237 í  'i       │
  383.    │ 174 R  registered (ISO) │ 206 I  ^I      │ 238 î  ^i        │
  384.    │ 175 -  upper line (ISO) │ 207 I  "I          │ 239 ï  "i       │
  385.    │ 176 °  degree         │ 208 D  -D (ISO)      │ 240 d  d (ISO)  │
  386.    │ 177 ±  plus/minus         │ 209 Ñ  ~N      │ 241 ñ  ~n        │
  387.    │ 178 ²  upper 2         │ 210 O  `O      │ 242 ò  `o        │
  388.    │ 179 ⁿ  upper 3         │ 211 O  'O          │ 243 ó  'o       │
  389.    │ 180 '  ' (ISO)          │ 212 O  ^O          │ 244 ô  ^o       │
  390.    │ 181 µ  greek my         │ 213 O  ~O      │ 245 o  ~o        │
  391.    │ 182   paragraph P      │ 214 Ö  "O          │ 246 ö  "o       │
  392.    │ 183 ∙  center point     │ 215 Ö  OE      │ 247 ö  oe        │
  393.    │ 184 ,  cedille (ISO)    │ 216 φ  /O      │ 248 φ  /o        │
  394.    │ 185 ┐  upper 1         │ 217 U  `U      │ 249 ù  `u        │
  395.    │ 186 º  ordinal         │ 218 U  'U          │ 250 ú  'u       │
  396.    │ 187 »  >>             │ 219 U  ^U      │ 251 û  ^u        │
  397.    │ 188 ¼  1/4          │ 220 Ü  "U          │ 252 ü  "u       │
  398.    │ 189 ½  1/2          │ 221 Y  "Y          │ 253 ÿ  "y       │
  399.    │ 190 ¿  3/4 (ISO)         │ 222 P  thorn (ISO) │ 254 P  P (ISO)  │
  400.    │ 191 ¿  turned ?         │ 223 ß  eszet      │ 255 ÿ  "y (ISO) │
  401.    └─────────────────────────┴────────────────────┴─────────────────┘
  402.  
  403.  
  404. keys
  405. ────────────────────────────────────────────────────────────────────
  406.  
  407.                  Function keys
  408.              ┌──────────┬────────┬───────┐
  409.              │ original │ IBM PC │ sends │
  410.              │ DEC key    │  key     │     │
  411.              ├──────────┼────────┼───────┤
  412.              │    PF1    │  F1     │ ESC P │
  413.              │    PF2    │  F2     │ ESC Q │
  414.              │    PF3    │  F3     │ ESC R │
  415.              │    PF4    │  F4     │ ESC S │
  416.              └──────────┴────────┴───────┘
  417.  
  418.  
  419.              Numerical keypad keys
  420.        ┌──────────┬────────┬─────────────┬─────────────┐
  421.        │ original │ IBM PC │  sends in   │    sends in   │
  422.        │ DEC key  │ key on │  numerical  │ application │
  423.        │          │ keypad │ keypad mode │      mode       │
  424.        ├──────────┼────────┼─────────────┼─────────────┤
  425.        │  0       │   0    │     0         │     ESC O p   │
  426.        │  1       │   1    │     1         │     ESC O q   │
  427.        │  2       │   2    │     2         │     ESC O r   │
  428.        │  3       │   3    │     3         │     ESC O s   │
  429.        │  4       │   4    │     4         │     ESC O t   │
  430.        │  5       │   5    │     5         │     ESC O u   │
  431.        │  6       │   6    │     6         │     ESC O v   │
  432.        │  7       │   7    │     7         │     ESC O w   │
  433.        │  8       │   8    │     8         │     ESC O x   │
  434.        │  9       │   9    │     9         │     ESC O y   │
  435.        │  -       │   -    │     -         │     ESC O m   │
  436.        │  ,       │   *    │     *         │     ESC O l   │
  437.        │  .       │   .    │     .         │     ESC O n   │
  438.        │  Return  │   +    │     +         │     ESC O M   │
  439.        └──────────┴────────┴─────────────┴─────────────┘
  440.  
  441.  
  442.                   Cursor keys
  443.        ┌────────────┬─────────┬───────────┬──────────────┐
  444.        │  original    │ IBM PC  │  cursor   │ application  │
  445.        │  DEC key    │  key      │   mode    │    mode      │
  446.        ├────────────┼─────────┼───────────┼──────────────┤
  447.        │    up    │  up      │  ESC [ A  │   ESC O A    │
  448.        │    down    │  down   │  ESC [ B  │   ESC O B    │
  449.        │    right    │  right  │  ESC [ C  │   ESC O C    │
  450.        │    left    │  left   │  ESC [ D  │   ESC O D    │
  451.        └────────────┴─────────┴───────────┴──────────────┘
  452.  
  453.  
  454.                Edit keys (vt220)
  455.           ┌─────────────┬────────┬───────────┐
  456.           │   original    │ IBM PC │   sends   │
  457.           │   DEC key    │  key     │         │
  458.           ├─────────────┼────────┼───────────┤
  459.           │ Find    │  Home  │ ESC [ 1 ~ │
  460.           │ Insert Here │  Ins     │ ESC [ 2 ~ │
  461.           │ Remove    │  Del     │ ESC [ 3 ~ │
  462.           │ Select    │  End     │ ESC [ 4 ~ │
  463.           │ Prev Scrn    │  PgUp  │ ESC [ 5 ~ │
  464.           │ Next Scrn    │  PgDn  │ ESC [ 6 ~ │
  465.           └─────────────┴────────┴───────────┘
  466.  
  467.  
  468.  
  469.  
  470.          ┌───────────────────────────────────┐
  471.          │ ┌───────────────────────────────┐ │
  472.          │ │  Tektronix 4010/4014 Commands │ │
  473.          │ └───────────────────────────────┘ │
  474.          └───────────────────────────────────┘
  475.  
  476.  
  477.  
  478. RS P1           - draw point P1 at (x,y)
  479. ────────────────────────────────────────────────────────────────────
  480.  
  481.  
  482. FS P1 P2 P3 ...    - draw line from point P1 to P2 to P3 ...
  483. ────────────────────────────────────────────────────────────────────
  484.  
  485.  
  486.          P1, P2, P3 consist of the following 4/5 bytes
  487.  
  488.     highy        │7│6│5│4│3│2│1│0│
  489.              │ │ │ │ │ │ │ └── Bit 7 of y
  490.              │ │ │ │ │ │ └─── Bit 8 of y
  491.              │ │ │ │ │ └──── Bit 9 of y
  492.              │ │ │ │ └───── Bit 10 of y
  493.              │ │ │ └────── Bit 11 of y
  494.              │ │ └─────── 1 always
  495.              │ └──────── 0 always
  496.              └───────── 0 always
  497.  
  498.     extra        │7│6│5│4│3│2│1│0│    if tektronix 4014
  499.              │ │ │ │ │ │ │ └── Bit 0 of x
  500.              │ │ │ │ │ │ └─── Bit 1 of x
  501.              │ │ │ │ │ └──── Bit 0 of y
  502.              │ │ │ │ └───── Bit 1 of y
  503.              │ │ │ └────── 0 always
  504.              │ │ └─────── 1 always
  505.              │ └──────── 1 always
  506.              └───────── 0 always
  507.  
  508.     lowy        │7│6│5│4│3│2│1│0│
  509.              │ │ │ │ │ │ │ └── Bit 2 of y
  510.              │ │ │ │ │ │ └─── Bit 3 of y
  511.              │ │ │ │ │ └──── Bit 4 of y
  512.              │ │ │ │ └───── Bit 5 of y
  513.              │ │ │ └────── Bit 6 of y
  514.              │ │ └─────── 1 always
  515.              │ └──────── 1 always
  516.              └───────── 0 always
  517.  
  518.     highx        │7│6│5│4│3│2│1│0│
  519.              │ │ │ │ │ │ │ └── Bit 7 of x
  520.              │ │ │ │ │ │ └─── Bit 8 of x
  521.              │ │ │ │ │ └──── Bit 9 of x
  522.              │ │ │ │ └───── Bit 10 of x
  523.              │ │ │ └────── Bit 11 of x
  524.              │ │ └─────── 0 always
  525.              │ └──────── 1 always
  526.              └───────── 0 always
  527.  
  528.     lowx        │7│6│5│4│3│2│1│0│
  529.              │ │ │ │ │ │ │ └── Bit 2 of x
  530.              │ │ │ │ │ │ └─── Bit 3 of x
  531.              │ │ │ │ │ └──── Bit 4 of x
  532.              │ │ │ │ └───── Bit 5 of x
  533.              │ │ │ └────── Bit 6 of x
  534.              │ │ └─────── 0 always
  535.              │ └──────── 1 always
  536.              └───────── 0 always
  537.  
  538.  
  539.    - In Tektronix 4010 emulation extra byte is not sent.
  540.    - If a part of P1 and P2 is the same it may be dropped in P2 as
  541.      long as the sequence is clear, lowx must always be sent.
  542.  
  543.  
  544. ESC ENQ        - enquire for terminal status
  545. ────────────────────────────────────────────────────────────────────
  546.  
  547.     ALPHA MODE - send back (status byte, alpha cursor position, GIN
  548.          terminator)
  549.  
  550.     GRAPH MODE - send back (status byte, graphic cursor position, GIN
  551.          terminator)
  552.  
  553.     GIN MODE   - send back (crosshair position, GIN terminator) and
  554.          leave GIN mode
  555.  
  556.  
  557.     status byte    │7│6│5│4│3│2│1│0│
  558.              │ │ │ │ │ │ │ └── 1 always
  559.              │ │ │ │ │ │ └─── margin (0 or 1)
  560.              │ │ │ │ │ └──── mode (0=alpha, 1=graph)
  561.              │ │ │ │ └───── 0 always
  562.              │ │ │ └────── 0 always (configured printer?)
  563.              │ │ └─────── 1 always
  564.              │ └──────── 0 always
  565.              └───────── 0 always
  566.  
  567.  
  568.     cursor position (4 bytes)
  569.  
  570.     highy        │7│6│5│4│3│2│1│0│
  571.              │ │ │ │ │ │ │ └── Bit 7 of y
  572.              │ │ │ │ │ │ └─── Bit 8 of y
  573.              │ │ │ │ │ └──── Bit 9 of y
  574.              │ │ │ │ └───── Bit 10 of y
  575.              │ │ │ └────── Bit 11 of y
  576.              │ │ └─────── 1 always
  577.              │ └──────── 0 always
  578.              └───────── 0 always
  579.  
  580.  
  581.     lowy        │7│6│5│4│3│2│1│0│
  582.              │ │ │ │ │ │ │ └── Bit 2 of y
  583.              │ │ │ │ │ │ └─── Bit 3 of y
  584.              │ │ │ │ │ └──── Bit 4 of y
  585.              │ │ │ │ └───── Bit 5 of y
  586.              │ │ │ └────── Bit 6 of y
  587.              │ │ └─────── 1 always
  588.              │ └──────── 0 always
  589.              └───────── 0 always
  590.  
  591.     highx        │7│6│5│4│3│2│1│0│
  592.              │ │ │ │ │ │ │ └── Bit 7 of x
  593.              │ │ │ │ │ │ └─── Bit 8 of x
  594.              │ │ │ │ │ └──── Bit 9 of x
  595.              │ │ │ │ └───── Bit 10 of x
  596.              │ │ │ └────── Bit 11 of x
  597.              │ │ └─────── 1 always
  598.              │ └──────── 0 always
  599.              └───────── 0 always
  600.  
  601.     lowx        │7│6│5│4│3│2│1│0│
  602.              │ │ │ │ │ │ │ └── Bit 2 of x
  603.              │ │ │ │ │ │ └─── Bit 3 of x
  604.              │ │ │ │ │ └──── Bit 4 of x
  605.              │ │ │ │ └───── Bit 5 of x
  606.              │ │ │ └────── Bit 6 of x
  607.              │ │ └─────── 1 always
  608.              │ └──────── 0 always
  609.              └───────── 0 always
  610.  
  611.     GIN terminator
  612.  
  613.         none    - end GIN mode = 0 (default)
  614.         CR        - end GIN mode = 1
  615.         CR, EOT - end GIN mode = 2
  616.  
  617.     - end GIN mode can be set in conex.ini
  618.  
  619.  
  620. ESC FF             - clear screen
  621. ────────────────────────────────────────────────────────────────────
  622.  
  623.  
  624. ESC SUB        - enter GIN (graphical input) mode
  625. ────────────────────────────────────────────────────────────────────
  626.  
  627.     - crosshair is displayed, which can be moved by cursor keys or
  628.       mouse
  629.  
  630.     - When a character is pressed, it will be transmitted including
  631.       crosshair position and GIN mode is left.
  632.  
  633.     CHAR, crosshair position, GIN terminator
  634.  
  635.     CHAR        character pressed on keyboard
  636.  
  637.  
  638.  
  639.  
  640.                ┌───────────────────────┐
  641.                │ ┌───────────────────┐ │
  642.                │ │ Programmable keys │ │
  643.                │ └───────────────────┘ │
  644.                └───────────────────────┘
  645.  
  646.  
  647.                   Control keys
  648.       ┌───────────┬────────────┬────────────┬────────────┐
  649.       │ NUL  0 ^@ │ BS.   8 ^H │ DLE  16 ^P │ CAN  24 ^X │
  650.       │ SOH  1 ^A │ HT.   9 ^I │ DC1  17 ^Q │ EM.  25 ^Y │
  651.       │ STX  2 ^B │ LF.  10 ^J │ DC2  18 ^R │ SUB  26 ^Z │
  652.       │ ETX  3 ^C │ VT.  11 ^K │ DC3  19 ^S │ ESC  27 ^[ │
  653.       │ EOT  4 ^D │ FF.  12 ^L │ DC4  20 ^T │ FS.  28 ^\ │
  654.       │ ENQ  5 ^E │ CR.  13 ^M │ NAK  21 ^U │ GS.  29 ^] │
  655.       │ ACK  6 ^F │ SO.  14 ^N │ SYN  22 ^V │ RS.  30 ^^ │
  656.       │ BEL  7 ^G │ SI.  15 ^O │ ETB  23 ^W │ US.  31 ^_ │
  657.       └───────────┴────────────┴────────────┴────────────┘
  658.  
  659.  
  660.  
  661.                  Numerical keys
  662.          ┌────────┬─────────┬───────────┬────────────┐
  663.          │          │ + shift │ + Control │    + Alt     │
  664.          ├────────┼─────────┼───────────┼────────────┤
  665.          │ NK-  - │ #N-  -    │ ^N-  -    │ @N-  -     │
  666.          │ NK+  + │ #N+  +    │ ^N+  +    │ @N+  +     │
  667.          │ NK1  1 │     │ ^N/  /    │ @N/  /     │
  668.          │ NK2  2 │     │ ^N*  *    │ @N*  *     │
  669.          │ NK3  3 │     │        │ @NE  Enter │
  670.          │ NK4  4 │     │        │         │
  671.          │ NK5  5 │ #N5  5    │ ^N5  5    │         │
  672.          │ NK6  6 │     │        │         │
  673.          │ NK7  7 │     │        │         │
  674.          │ NK8  8 │     │        │         │
  675.          │ NK9  9 │     │        │         │
  676.          │ NK.  . │     │        │         │
  677.          └────────┴─────────┴───────────┴────────────┘
  678.  
  679.  
  680.                   Cursor keys
  681.   ┌────────────────┬──────────────┬────────────────┬────────────────┐
  682.   │           │    + shift   │    + Control   │    + Alt        │
  683.   ├────────────────┼──────────────┼────────────────┼────────────────┤
  684.   │ DN.  down       │ #DN  down      │ ^DN  down       │ @DN  down        │
  685.   │ UP.  up       │ #UP  up      │ ^UP  up       │ @UP  up        │
  686.   │ LT.  left       │ #LT  left      │ ^LT  left       │ @LT  left        │
  687.   │ RT.  right       │ #RT  right   │ ^RT  right       │ @RT  right     │
  688.   │ PDN  page down │ #PD  page dn │ ^PD  page down │ @PD  page down │
  689.   │ PUP  page up   │ #PU  page up │ ^PU  page up   │ @PU  page up   │
  690.   │ HOM  home       │ #HM  home      │ ^HM  home       │ @HM  home        │
  691.   │ END  end       │ #ED  end      │ ^ED  end       │ @ED  end        │
  692.   │ INS  insert    │ #IN  insert  │ ^IN  insert    │ @IN  insert    │
  693.   │ DEL  delete    │ #DL  delete  │ ^DL  delete    │ @DL  delete    │
  694.   │           │          │ ^TB  tab       │ @TB  tab        │
  695.   │           │          │ ^PS  print scn │ @ES  escape    │
  696.   │           │          │           │ @BS  backspace │
  697.   │           │          │           │ @CR  CR        │
  698.   └────────────────┴──────────────┴────────────────┴────────────────┘
  699.  
  700.  
  701.  
  702.                 Alt combinations
  703.      ┌────────────┬────────────┬────────────┬────────────┐
  704.      │ @-A    alt+A │ @-J  alt+J │ @-S  alt+S │ @-1  alt+1 │
  705.      │ @-B    alt+B │ @-K  alt+K │ @-T  alt+T │ @-2  alt+2 │
  706.      │ @-C    alt+C │ @-L  alt+L │ @-U  alt+U │ @-3  alt+3 │
  707.      │ @-D    alt+D │ @-M  alt+M │ @-V  alt+V │ @-4  alt+4 │
  708.      │ @-E    alt+E │ @-N  alt+N │ @-W  alt+W │ @-5  alt+5 │
  709.      │ @-F    alt+F │ @-O  alt+O │ @-X  alt+X │ @-6  alt+6 │
  710.      │ @-G    alt+G │ @-P  alt+P │ @-Y  alt+Y │ @-7  alt+7 │
  711.      │ @-H    alt+H │ @-Q  alt+Q │ @-Z  alt+Z │ @-8  alt+8 │
  712.      │ @-I    alt+I │ @-R  alt+R │ @-0  alt+0 │ @-9  alt+9 │
  713.      └────────────┴────────────┴────────────┴────────────┘
  714.  
  715.  
  716.  
  717.                  Function keys
  718.          ┌──────────┬──────────┬───────────┬──────────┐
  719.          │        │ + Shift  │ + Control │  + Alt   │
  720.          ├──────────┼──────────┼───────────┼──────────┤
  721.          │ F01  F1    │ #F1  F1  │ ^F1  F1   │ @F1  F1  │
  722.          │ F02  F2    │ #F2  F2  │ ^F2  F2   │ @F2  F2  │
  723.          │ F03  F3    │ #F3  F3  │ ^F3  F3   │ @F3  F3  │
  724.          │ F04  F4    │ #F4  F4  │ ^F4  F4   │ @F4  F4  │
  725.          │ F05  F5    │ #F5  F5  │ ^F5  F5   │ @F5  F5  │
  726.          │ F06  F6    │ #F6  F6  │ ^F6  F6   │ @F6  F6  │
  727.          │ F07  F7    │ #F7  F7  │ ^F7  F7   │ @F7  F7  │
  728.          │ F08  F8    │ #F8  F8  │ ^F8  F8   │ @F8  F8  │
  729.          │ F09  F9    │ #F9  F9  │ ^F9  F9   │ @F9  F9  │
  730.          │ F10  F10 │ #10  F10 │ ^10  F10  │ @10  F10 │
  731.          │ F11  F11 │ #11  F11 │ ^11  F11  │ @11  F11 │
  732.          │ F12  F12 │ #12  F12 │ ^12  F12  │ @12  F12 │
  733.          └──────────┴──────────┴───────────┴──────────┘
  734.  
  735.  
  736.  
  737.               Init session string
  738.           ┌────────────────┬────────────────┐
  739.           │ IN0  session 0 │ IN5  session 5 │
  740.           │ IN1  session 1 │ IN6  session 6 │
  741.           │ IN2  session 2 │ IN7  session 7 │
  742.           │ IN3  session 3 │ IN8  session 8 │
  743.           │ IN4  session 4 │ IN9  session 9 │
  744.           └────────────────┴────────────────┘
  745.  
  746.  
  747.  
  748.              ┌──────────────────────────┐
  749.              │    ┌─────────────────────┐ │
  750.              │    │ Format of CONEX.INI │ │
  751.              │    └─────────────────────┘ │
  752.              └──────────────────────────┘
  753.  
  754.  
  755. Format of input parameters in CONEX.INI
  756.  
  757. ***    - decimal number (default=0)
  758. $***    - hexadecimal number (default = 0)
  759. '*      - ASCII character "a"
  760. "***"   - string of characters
  761.  
  762.  - The version number of the INI-file must exactly correspond to version
  763.    number of CONEX, otherwise it will be ignored (without warning).
  764.  
  765.  - Parameters always follow a section header, (esp. "Common
  766.    parameters"), which must exactly be written as indicated.
  767.    If a section header is not found, default values will be taken.
  768.  
  769.  - Parameters must be seperated with ",", the number of fields should
  770.    exactly correspond to the number of parameters of the specified
  771.    section.
  772.  
  773.  - Empty fields are interpreted as 0 in case of a number or as an empty
  774.    string.
  775.  
  776.  - Blanks and carriage returns outside of parameters are ignored.
  777.  
  778.  - Parameter types can be mixed, i.e. "abcd"$66 103"g"'h gives "abcdefgh".
  779.  
  780.  - Parameters in the INI-file are not checked for consistencies, so be
  781.    cautious, if you alter the INI-file directly. Most parameters in
  782.    CONEX.INI can be set in CONEX itself and saved by ALT-S.
  783.  
  784.  
  785. CONEX 6.1
  786.  
  787. Common parameters
  788. ────────────────────────────────────────────────────────────────────
  789.   # meaning
  790.  
  791.   1 Normal character attribute
  792.   2 Bold character attribute
  793.   3 Underlined character attribute
  794.   4 Bold and underline character attribute
  795.   5 Attribute of error messages at bottom of screen
  796.   6 Normal character attribute in status line
  797.   7 Highlighted character attribute in status line
  798.   8 Attribute of macro display in status line
  799.   9 Normal character attribute in help menu
  800.  10 Highlighted character attribute in help menu
  801.  11 Attribute of chapters in help menu
  802.  12 Normal character attribute in windows
  803.  13 Highlighted character attribute in windows
  804.  14 Attribute of instruction line at bottom of line
  805.  15 Attribute of shadow of window
  806.  16 Normal character attribute in listing window
  807.  17 Highlighted characters attribute in listing window
  808.  18 Attribute of number of bytes in listing window
  809.  19 Normal character attribute in file transfer mode
  810.  20 Highlighted character attribute  in file transfer mode
  811.  
  812.  21 Graphic card (not used, self detected)
  813.  22 Plot size (0=DIN A4, 1=DIN A3)
  814.  23 Plot aspect
  815.  24 Plot margin in mm
  816.  25 Plot velocity (0 ... 9=0 ... 40)
  817.  26 Insert option when entering strings in windows (0=overwrite, 1=insert)
  818.  27 Append file with Alt-W (0=overwrite, 1=append)
  819.  28 Quote character for character with bit 8 set in kermit protocol
  820.  29 Repeat character in kermit protocol
  821.  30 Help page (0=version/author, 1=default keys, 2=user defined
  822.     keys)
  823.  31 Reserved
  824.  32 Number of lines per page on printer output
  825.  33 IO address of COM1 (0=read from BIOS)
  826.  34 IO address of COM2
  827.  35 IO address of COM3
  828.  36 IO address of COM4
  829.  37 Interrupt number of COM1 (0=not present)
  830.  38 Interrupt number of COM2
  831.  39 Interrupt number of COM3
  832.  40 Interrupt number of COM4
  833.  41 Rotate interrupt controller priority (0=interrupts from serial line
  834.     are served last (default), 1=interrupts from serial line are served
  835.     first) only if port=COM
  836.  42 automatically read ini file (0 = no, 1 = yes)
  837.  43 host table name (only BW/TCP)
  838.  !  end of section
  839.  
  840.  
  841. Session dependent parameters
  842. ────────────────────────────────────────────────────────────────────
  843.  
  844.   1 Host name (max. 16 bytes)
  845.   2 Prompt (max 16 bytes)
  846.   3 Port (0=COM, 1=Int14, 2=LAT, 3=PC/TCP)
  847.   4 Port number (1 - 4)
  848.   5 Baud rate (0=50, 1=75, 2=110, 3=150, 4=200, 5=300, 6=600, 7=1200,
  849.     8=1800, 9=2400, 10=3600, 11=4800, 12=9600, 13=19200, 14=38400,
  850.     15=57600, 16=115200)
  851.   6 Bits/parity (0=7 none, 1=7 even, 2=7 odd, 3=7 mark, 4=8 none,
  852.     5=8 even, 6=8 odd)
  853.   7 Number of stop bits (0=1, 1=2)
  854.   8 Duplex (0=half, 1=full)
  855.   9 Protocol (0=none, 1=hardware, 2=xon/xoff)
  856.  
  857.  10 Outbound kermit packets: packet length
  858.  11 Outbound kermit packets: time out
  859.  12 Outbound kermit packets: number of padding characters
  860.  13 Outbound kermit packets: padding character
  861.  14 Outbound kermit packets: EOL character
  862.  15 Outbound kermit packets: quote control characters
  863.  16 Outbound kermit packets: kermit checksum type (0=1, 1=2, 2=3 bytes CRC)
  864.  17 Outbound kermit packets: kermit quote of repeat character
  865.  18 Outbound kermit packets: kermit packet length
  866.  19 Outbound kermit packets: capabilities mask
  867.  
  868.  20 Inbound kermit packets: packet length
  869.  21 Inbound kermit packets: time out (not used)
  870.  22 Inbound kermit packets: number of padding characters
  871.  23 Inbound kermit packets: padding character
  872.  24 Inbound kermit packets: end of packet character
  873.  25 Inbound kermit packets: control bit quote character
  874.  26 Inbound kermit packets: 8th bit quote character (0 = not activated)
  875.  27 Inbound kermit packets: checksum type
  876.  28 Inbound kermit packets: repeat character (0 = not activated)
  877.  29 Inbound kermit packets: capabilities mask
  878.  
  879.  30 Kermit mode: maximal number of retries
  880.  
  881.  31 Break length (Alt-B)
  882.  32 Trace in kermit protocol
  883.  33 Emulation (0=none, 1=VT102)
  884.  34 Status line type (ALT-L)
  885.  35 Graphic enabled (ALT-G)
  886.  36 End GIN mode (0=none, 1=CR, 2=CR,EOT)
  887.  37 Active character set 1 (0=US, 1=UK, 2=German, 3=graphic, 4=user)
  888.  38 Active character set 2 (0=Multinational, 1=user)
  889.  !  end of section
  890.  
  891.   - Parameters (1 - 38 !) must be repeated for every session (10 times)
  892.  
  893.  
  894. Keyboard translation
  895. ────────────────────────────────────────────────────────────────────
  896.                 ─┐
  897.   1 Key to be redefined ()   │
  898.   2 Label of key         ├─ repeat this part for every key definition
  899.   3 New definition of key    │
  900.   ! end of key definition    │
  901.                 ─┘
  902.   ! end of keyboard translation section
  903.  
  904.  
  905. Dial sequence
  906. ────────────────────────────────────────────────────────────────────
  907.  
  908.   1 Prefix to dial number
  909.   2 Suffix to dial number
  910.   3 Messages returned by modem seperated with |
  911.     (1st part answer if connected, all other part if connection failed)
  912.   ! end of section
  913.  
  914.   - parameter 1 and 2 may contain <W...> or <R...> commands.
  915.  
  916.  
  917. User defined character set
  918. ────────────────────────────────────────────────────────────────────
  919.   1 String with character map from 32 to 127. (Alt-M, char set 1: User)
  920.   2 String with character map from 128 to 255. (Alt-M, char set 2: User)
  921.   ! end of section
  922.  
  923.   - if the specified string is shorter than the given range, it is filled
  924.     with characters from the default character set.
  925.